package com.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * @author 萧一旬
 * @date Create in 17:33 2020/9/17
 */
public class User {

    @Excel(name = "姓名")
    private String name;
    @Excel(name = "性别", replace = {"男_1", "女_2"})
    private String gender;
    @Excel(name = "年龄")
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public User() {
    }

    public User(String name, String gender, Integer age) {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                '}';
    }
}
